/// <reference path="./BaseOral.ts" />
namespace wmedu {
    /** 四则运算：单除法 */
    export class FourOper_Div extends BaseOral implements IOralCreater {
        create(opt: IOralOpt) {
            let paramArea = opt.paramArea;
            let ops: Enum_OralOp[] = [Enum_OralOp.Div];

            let value = this.mGetRandomInt(paramArea);
            let p2 = this.mGetRandomInt(paramArea);
            let p1 = value * p2;

            let str = BuildUtil.getOralStr(opt.blankSide, opt.blankStr, [p1, p2], ops, value);
            let res: IOralSide = { nums: [p1, p2], ops: ops, value: value, str }
            return res;
        }
    }
}